home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / acpi / asus-touchpad.sh next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2006-10-15  |  270 b   |  15 lines

  1. #!/bin/sh
  2.  
  3. # get the current state of the touchpad
  4. TPSTATUS=`synclient -l | grep TouchpadOff | awk '{print $3}'`
  5.  
  6. # if getting the status failed, exit
  7. test -z $TPSTATUS && exit 1
  8.  
  9. if [ $TPSTATUS = 0 ]; then
  10.    synclient TouchpadOff=1
  11. else
  12.    synclient TouchpadOff=0
  13. fi
  14.  
  15.